/*	Interactive Gravitational Simulator
	Project: IGS Core
	File: Dynamics.h
	Author: Mike Bantegui <mbante2@gmail.com>, Hofstra University 
	Copyright (C) 2012 - 2013 Mike Bantegui

	This file is part of the IGS software package for simulating
	the N-Body problem in real-time. This was developed as part
	of a departmental honors thesis project at Hofstra University
	in the Spring 2012 semester.

	IGS is free software; you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 2 of the License, or
	(at your option) any later version.

	IGS is distributed in the hope that it will be useful,
	but WITHOUT ANY WARRANTY; without even the implied warranty of
	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
	GNU General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with this program; if not, write to the Free Software
	Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#ifndef IGS_DYNAMICS_H
#define IGS_DYNAMICS_H

#include "Vector.h"

namespace IGS
{

// The Dynamics structure keeps track of various dynamical parameters
// of the system. Per Aarseth 2003, p 7, we keep track of the 10 constants
// of motion: angular velocity, center of mass, center of momentum and
// total energy.
struct Dynamics
{
	// The kinetic energy of the system
	double Kinetic;
	// The potential energy of the system
	double Potential;
	// The maximum distance of a body from the origin
	double MaxDistance;
	// The maximum velocity of a body in the system
	double MaxVelocity;
	// The maximum momentum of a body in the system
	double MaxMomentum;
	// The maximum mass of a body in the system
	double MaxMass;
	// The center of mass of the system
	Vector CenterOfMass;
	// The center of momentum of the system
	Vector CenterOfMomentum;
	// The angular momentum of the system
	Vector AngularMomentum;
	// The angular velocity of the system
	Vector AngularVelocity;
	// The minimum bound of the system
	Vector MinBound;
	// The maximum bound of the system
	Vector MaxBound;
	// The total force of the system
	Vector TotalForce;

	Dynamics();
};

}

#endif